package com.hejia.alauda.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 产品打款明细
 * 
 * @author hyr
 *
 */
public class ProductRepaymentLedger {

	private Long productId; // 产品ID
	private String productName; // 产品名称
	private BigDecimal repayAmount; // 打款金额
	private BigDecimal financingAmount; // 本金
	private BigDecimal incomeAmount; // 利息
	private BigDecimal redEnvelope; // 红包合计
	private BigDecimal register50RedEnvelope; // 50注册红包
	private BigDecimal financialRedEnvelope; // 理财金
	private List<RepaymentBonus> repaymentBonuses; // 红包列表

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public BigDecimal getRepayAmount() {
		if (repayAmount == null) {
			repayAmount = BigDecimal.ZERO;
		}
		return repayAmount;
	}

	public void setRepayAmount(BigDecimal repayAmount) {
		this.repayAmount = repayAmount;
	}

	public BigDecimal getFinancingAmount() {
		if (financingAmount == null) {
			financingAmount = BigDecimal.ZERO;
		}
		return financingAmount;
	}

	public void setFinancingAmount(BigDecimal financingAmount) {
		this.financingAmount = financingAmount;
	}

	public BigDecimal getIncomeAmount() {
		if (incomeAmount == null) {
			incomeAmount = BigDecimal.ZERO;
		}
		return incomeAmount;
	}

	public void setIncomeAmount(BigDecimal incomeAmount) {
		this.incomeAmount = incomeAmount;
	}

	public BigDecimal getRedEnvelope() {
		if (redEnvelope == null) {
			redEnvelope = BigDecimal.ZERO;
		}
		return redEnvelope;
	}

	public void setRedEnvelope(BigDecimal bonusAmount) {
		this.redEnvelope = bonusAmount;
	}

	public BigDecimal getFinancialRedEnvelope() {
		if (financialRedEnvelope == null) {
			financialRedEnvelope = BigDecimal.ZERO;
		}
		return financialRedEnvelope;
	}

	public BigDecimal getRegister50RedEnvelope() {
		if (register50RedEnvelope == null) {
			register50RedEnvelope = BigDecimal.ZERO;
		}
		return register50RedEnvelope;
	}

	public void setRegister50RedEnvelope(BigDecimal register50RedEnvelope) {
		this.register50RedEnvelope = register50RedEnvelope;
	}

	public void setFinancialRedEnvelope(BigDecimal financialRedEnvelope) {
		if (financialRedEnvelope == null) {
			financialRedEnvelope = BigDecimal.ZERO;
		}
		this.financialRedEnvelope = financialRedEnvelope;
	}

	public List<RepaymentBonus> getRepaymentBonuses() {
		if (repaymentBonuses == null) {
			repaymentBonuses = new ArrayList<>();
		}
		return repaymentBonuses;
	}

	public void setRepaymentBonuses(List<RepaymentBonus> repaymentBonuses) {
		this.repaymentBonuses = repaymentBonuses;
	}

}
